package com.yw.service.Impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.yw.dataAsset.domain.DataAssetFieldInfo;
import com.yw.mapper.DataAssetFieldMapper;
import com.yw.service.DataAssetFieldService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DataAssetFieldServiceImpl extends ServiceImpl<DataAssetFieldMapper, DataAssetFieldInfo>
                                            implements DataAssetFieldService {

    @Override
    public List<DataAssetFieldInfo> getOneByDatabaseId(Integer databaseId) {
        LambdaQueryWrapper<DataAssetFieldInfo> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(DataAssetFieldInfo::getDatabaseId,databaseId);
        List<DataAssetFieldInfo> list = this.list(wrapper);
        return list;
    }
}
